<?php echo $this->fetch('header.html'); ?>
<script type="text/javascript" src="<?php echo $this->lib_base . "/" . 'ajax_refer.js'; ?>" charset="utf-8"></script>
<div id="rightTop">
  <p>会员管理</p>
  <ul class="subnav">
    <li><a class="btn1" href="index.php?app=user">管理</a></li>
    <li><a class="btn1" href="index.php?app=user&amp;act=add">新增</a></li>
    <li><span>会员推荐关系</span></li>
  </ul>
</div>

<div class="info2">
    <table  class="distinction">
        <?php if ($this->_var['member_list']): ?>
        <thead>
        <tr class="tatr1">
            <td class="w30"><input id="checkall_1" type="checkbox" class="checkall" /></td>
            <td width="40%"><span class="all_checkbox"><label for="checkall_1">全选</label></span>会员名</td>
            <td>注册时间</td>
            <td>手机</td>
            <td>电子邮箱</td>
            <td class="handler">操作</td>
        </tr>
        </thead>
        <?php endif; ?>
        <?php if ($this->_var['member_list']): ?><tbody id="treet1"><?php endif; ?>
        <?php $_from = $this->_var['member_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'member');if (count($_from)):
    foreach ($_from AS $this->_var['member']):
?>
        <tr>
            <td class="align_center w30"><input type="checkbox" class="checkitem" value="<?php echo $this->_var['member']['user_id']; ?>" /></td>
            <td class="node" width="50%"><?php if ($this->_var['member']['switchs']): ?><img src="templates/style/images/treetable/tv-expandable.gif" ectype="flex" status="open" fieldid="<?php echo $this->_var['member']['user_id']; ?>"><?php else: ?><img src="templates/style/images/treetable/tv-item.gif"><?php endif; ?><span class="node_name" ><?php echo htmlspecialchars($this->_var['member']['user_name']); ?></span></td>
            <td class="align_center"><?php echo local_date("Y-m-d H:i:s",$this->_var['member']['reg_time']); ?></td>
            <td class="align_center"><?php echo htmlspecialchars($this->_var['member']['phone_mob']); ?></td>
            <td class="align_center"><?php echo htmlspecialchars($this->_var['member']['email']); ?></td>
            <td class="align_center">
                <a href="index.php?app=user&amp;act=edit&amp;id=<?php echo $this->_var['member']['user_id']; ?>">编辑</a>
            </td>
        </tr>
        <?php endforeach; else: ?>
        <tr class="no_data">
            <td colspan="5">没有符合条件的记录</td>
        </tr>
        <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
        <?php if ($this->_var['member_list']): ?></tbody><?php endif; ?>
    </table>
</div>

<?php echo $this->fetch('footer.html'); ?>